package referencePass;

/**
 * Created by Veronica on 2017/3/28.
 */


class Ref2 {
    String temp = "Hello";
}
public class RefDemo03 {
    public static void main(String[] args) {
        Ref2 r1 = new Ref2();
        r1.temp = "jike";
        System.out.println(r1.temp);
        tell(r1);
        System.out.println(r1.temp);
    }
    public static void tell(Ref2 r2){
        r2.temp = "xueyuan";
    }
}
